<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxWindowsIntrinsics.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxWindowsIntrinsics_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxWindowsIntrinsics.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxWindowsIntrinsics_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef PXFOUNDATION_PXWINDOWSINTRINSICS_H</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define PXFOUNDATION_PXWINDOWSINTRINSICS_H</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Px_8h.html">foundation/Px.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxSharedAssert_8h.html">foundation/PxSharedAssert.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#if !PX_WINDOWS_FAMILY</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#error &quot;This file should only be included by Windows builds!!&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;float.h&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">namespace </span>intrinsics</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a1cf5e31b1076fc655d2a46a5257d6590">   51</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a1b8acec0126e65de2a202041259dbc24">abs</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    return ::fabsf(a);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;}</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a8b6eb99ef7e675d607268a1f8413be5e">   57</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a93c0ce4837ef344a085c3f24f67ad9ec">fsel</a>(<span class="keywordtype">float</span> a, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> c)</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordflow">return</span> (a &gt;= 0.0f) ? b : c;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a480a9e7204fe3c8f4b3d60eb7165fae8">   63</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a6656cd9bb69935ec8da869dc773300a3">sign</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordflow">return</span> (a &gt;= 0.0f) ? 1.0f : -1.0f;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;}</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#aa6806d765fa4621492ee988d3d3c13c6">   69</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#afb0097e9486986380c1de6401de9f383">recip</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordflow">return</span> 1.0f / a;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;}</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a39a4b10ef013902b46ab72a6f301faaf">   75</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a5f43fd02acac0ee45d754e8dabdbcfbf">recipFast</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;{</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordflow">return</span> 1.0f / a;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a93316de46822f61a4fb79f603d05be61">   81</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a8dcc85a5e81948939ab66345dbcc3bbb">sqrt</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;{</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    return ::sqrtf(a);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;}</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a11fd1983ba8a2204909ae97ca3ed322f">   87</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a08df84250266fb3fdc92737e25211e40">recipSqrt</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">return</span> 1.0f / ::sqrtf(a);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;}</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#adda5156abeb71c4d649c10a90c384814">   93</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a9aa20f194dda5951d3ef73d3ce2e69d6">recipSqrtFast</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;{</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">return</span> 1.0f / ::sqrtf(a);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;}</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#ae1934f6d8ecf82dbfb597f965fb09846">   99</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a5bc50b113da405bd05de0630836571db">sin</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;{</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    return ::sinf(a);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a87498b7c02e15d4a59213016c7d1f4e8">  105</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a2b6304c3d6e0b90be513f31aa224f4be">cos</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;{</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    return ::cosf(a);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;}</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#aebde282c6d91cb975d8e56196c0f7a65">  111</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#af05df5a859fc7e8aa5ce37e7a511d657">selectMin</a>(<span class="keywordtype">float</span> a, <span class="keywordtype">float</span> b)</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;{</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">return</span> a &lt; b ? a : b;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;}</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a2021ee304ce528baa264c35c7bb0f981">  117</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a50b7966b3196dc1a6c4d9b611627ed9d">selectMax</a>(<span class="keywordtype">float</span> a, <span class="keywordtype">float</span> b)</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;{</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">return</span> a &gt; b ? a : b;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a6cf2084ddd2ba3ac6cc5b0e4e7389806">  123</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a28bd12477f3ca0b092c0b9b61bdfaf04">isFinite</a>(<span class="keywordtype">float</span> a)</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;{</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#ifdef __CUDACC__</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">return</span> !!isfinite(a);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">return</span> (0 == ((_FPCLASS_SNAN | _FPCLASS_QNAN | _FPCLASS_NINF | _FPCLASS_PINF) &amp; _fpclass(a)));</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a5d4ea7807df2fcf1968275bc06e79319">  133</a></span>&#160;<a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="namespacephysx_1_1intrinsics.html#a28bd12477f3ca0b092c0b9b61bdfaf04">isFinite</a>(<span class="keywordtype">double</span> a)</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;{</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#ifdef __CUDACC__</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">return</span> !!isfinite(a);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordflow">return</span> (0 == ((_FPCLASS_SNAN | _FPCLASS_QNAN | _FPCLASS_NINF | _FPCLASS_PINF) &amp; _fpclass(a)));</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a77584c1c595ec2dbc695f76986b5e616">  145</a></span>&#160;<a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>* <a class="code" href="namespacephysx_1_1intrinsics.html#aeb16ada4e5dfb694bcf7dbdbcbb4dc9a">memZero</a>(<span class="keywordtype">void</span>* dest, uint32_t count)</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;{</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keywordflow">return</span> memset(dest, 0, count);</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a298ee9e11253b68a85543aaf66dc30e2">  153</a></span>&#160;<a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>* <a class="code" href="namespacephysx_1_1intrinsics.html#a28ed71571fbc8a7ed6a3d4c2f8427f8f">memSet</a>(<span class="keywordtype">void</span>* dest, int32_t c, uint32_t count)</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;{</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">return</span> memset(dest, c, count);</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;}</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#aac68f9e9de2f571d9a37ea9b801d5913">  161</a></span>&#160;<a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>* <a class="code" href="namespacephysx_1_1intrinsics.html#addd62b5b25acaca7d93f0f2ffe7ca4e5">memCopy</a>(<span class="keywordtype">void</span>* dest, <span class="keyword">const</span> <span class="keywordtype">void</span>* src, uint32_t count)</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;{</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordflow">return</span> memcpy(dest, src, count);</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;}</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a77de5677796115fbb79b56c172636be8">  169</a></span>&#160;<a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span>* <a class="code" href="namespacephysx_1_1intrinsics.html#aae91a6cbd977043baf04ecfc489afb06">memMove</a>(<span class="keywordtype">void</span>* dest, <span class="keyword">const</span> <span class="keywordtype">void</span>* src, uint32_t count)</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;{</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keywordflow">return</span> memmove(dest, src, count);</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;}</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="PxWindowsIntrinsics_8h.html#a8c4d58510ddab8ce6da814f5710fa360">  177</a></span>&#160;<a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="namespacephysx_1_1intrinsics.html#af6be18e9680507caa70ffa67fda89830">memZero128</a>(<span class="keywordtype">void</span>* dest, uint32_t offset = 0)</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;{</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <a class="code" href="group__foundation.html#ga07ffc52cd4afa8e797a5fe6e1cb7e17a">PX_SHARED_ASSERT</a>(((<span class="keywordtype">size_t</span>(dest) + offset) &amp; 0x7f) == 0);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <a class="code" href="namespacephysx_1_1intrinsics.html#a28ed71571fbc8a7ed6a3d4c2f8427f8f">memSet</a>(reinterpret_cast&lt;char*&gt;(dest) + offset, 0, 128);</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;}</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;} <span class="comment">// namespace intrinsics</span></div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor">#endif // #ifndef PXFOUNDATION_PXWINDOWSINTRINSICS_H</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_afb0097e9486986380c1de6401de9f383"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#afb0097e9486986380c1de6401de9f383">physx::intrinsics::recip</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float recip(float a)</div><div class="ttdoc">platform-specific reciprocal </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:74</div></div>
<div class="ttc" id="Px_8h_html"><div class="ttname"><a href="Px_8h.html">Px.h</a></div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a8dcc85a5e81948939ab66345dbcc3bbb"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a8dcc85a5e81948939ab66345dbcc3bbb">physx::intrinsics::sqrt</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float sqrt(float a)</div><div class="ttdoc">platform-specific square root </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:86</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a08df84250266fb3fdc92737e25211e40"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a08df84250266fb3fdc92737e25211e40">physx::intrinsics::recipSqrt</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float recipSqrt(float a)</div><div class="ttdoc">platform-specific reciprocal square root </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:92</div></div>
<div class="ttc" id="group__foundation_html_ga6a774eed3cad34b0f636332a3d28c6bb"><div class="ttname"><a href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a></div><div class="ttdeci">#define PX_FORCE_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:351</div></div>
<div class="ttc" id="PxSharedAssert_8h_html"><div class="ttname"><a href="PxSharedAssert_8h.html">PxSharedAssert.h</a></div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_af05df5a859fc7e8aa5ce37e7a511d657"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#af05df5a859fc7e8aa5ce37e7a511d657">physx::intrinsics::selectMin</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float selectMin(float a, float b)</div><div class="ttdoc">platform-specific minimum </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:115</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a50b7966b3196dc1a6c4d9b611627ed9d"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a50b7966b3196dc1a6c4d9b611627ed9d">physx::intrinsics::selectMax</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float selectMax(float a, float b)</div><div class="ttdoc">platform-specific maximum </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:121</div></div>
<div class="ttc" id="group__foundation_html_ga07ffc52cd4afa8e797a5fe6e1cb7e17a"><div class="ttname"><a href="group__foundation.html#ga07ffc52cd4afa8e797a5fe6e1cb7e17a">PX_SHARED_ASSERT</a></div><div class="ttdeci">#define PX_SHARED_ASSERT(exp)</div><div class="ttdef"><b>Definition:</b> PxSharedAssert.h:39</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_addd62b5b25acaca7d93f0f2ffe7ca4e5"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#addd62b5b25acaca7d93f0f2ffe7ca4e5">physx::intrinsics::memCopy</a></div><div class="ttdeci">PX_FORCE_INLINE void * memCopy(void *dest, const void *src, uint32_t count)</div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:160</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a6656cd9bb69935ec8da869dc773300a3"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a6656cd9bb69935ec8da869dc773300a3">physx::intrinsics::sign</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float sign(float a)</div><div class="ttdoc">platform-specific sign </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:68</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a28bd12477f3ca0b092c0b9b61bdfaf04"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a28bd12477f3ca0b092c0b9b61bdfaf04">physx::intrinsics::isFinite</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE bool isFinite(float a)</div><div class="ttdoc">platform-specific finiteness check (not INF or NAN) </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:127</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a2b6304c3d6e0b90be513f31aa224f4be"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a2b6304c3d6e0b90be513f31aa224f4be">physx::intrinsics::cos</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float cos(float a)</div><div class="ttdoc">platform-specific cosine </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:109</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a9aa20f194dda5951d3ef73d3ce2e69d6"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a9aa20f194dda5951d3ef73d3ce2e69d6">physx::intrinsics::recipSqrtFast</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float recipSqrtFast(float a)</div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:97</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a93c0ce4837ef344a085c3f24f67ad9ec"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a93c0ce4837ef344a085c3f24f67ad9ec">physx::intrinsics::fsel</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float fsel(float a, float b, float c)</div><div class="ttdoc">platform-specific select float </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:62</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a1b8acec0126e65de2a202041259dbc24"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a1b8acec0126e65de2a202041259dbc24">physx::intrinsics::abs</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float abs(float a)</div><div class="ttdoc">platform-specific absolute value </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:56</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_aae91a6cbd977043baf04ecfc489afb06"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#aae91a6cbd977043baf04ecfc489afb06">physx::intrinsics::memMove</a></div><div class="ttdeci">PX_FORCE_INLINE void * memMove(void *dest, const void *src, uint32_t count)</div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:168</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a5f43fd02acac0ee45d754e8dabdbcfbf"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a5f43fd02acac0ee45d754e8dabdbcfbf">physx::intrinsics::recipFast</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float recipFast(float a)</div><div class="ttdoc">platform-specific reciprocal estimate </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:80</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a28ed71571fbc8a7ed6a3d4c2f8427f8f"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a28ed71571fbc8a7ed6a3d4c2f8427f8f">physx::intrinsics::memSet</a></div><div class="ttdeci">PX_FORCE_INLINE void * memSet(void *dest, int32_t c, uint32_t count)</div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:152</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_af6be18e9680507caa70ffa67fda89830"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#af6be18e9680507caa70ffa67fda89830">physx::intrinsics::memZero128</a></div><div class="ttdeci">PX_FORCE_INLINE void memZero128(void *dest, uint32_t offset=0)</div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:176</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_aeb16ada4e5dfb694bcf7dbdbcbb4dc9a"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#aeb16ada4e5dfb694bcf7dbdbcbb4dc9a">physx::intrinsics::memZero</a></div><div class="ttdeci">PX_FORCE_INLINE void * memZero(void *dest, uint32_t count)</div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:144</div></div>
<div class="ttc" id="namespacephysx_1_1intrinsics_html_a5bc50b113da405bd05de0630836571db"><div class="ttname"><a href="namespacephysx_1_1intrinsics.html#a5bc50b113da405bd05de0630836571db">physx::intrinsics::sin</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float sin(float a)</div><div class="ttdoc">platform-specific sine </div><div class="ttdef"><b>Definition:</b> PxUnixIntrinsics.h:103</div></div>
<div class="ttc" id="group__foundation_html_ga6e444d58dbf1459261fadc9b79594f63"><div class="ttname"><a href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a></div><div class="ttdeci">#define PX_CUDA_CALLABLE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:460</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_266c30cc99b40eba7d94345de82f8db9.html">packman-repo</a></li><li class="navelem"><a class="el" href="dir_44fe44e2771711da9c667697b685dcda.html">PxShared-public</a></li><li class="navelem"><a class="el" href="dir_e1dbf85b29c2f923267acb78e2c299dd.html">1.1.trunk.29467035</a></li><li class="navelem"><a class="el" href="dir_67f783feb5a64e036eee501a17b4317a.html">include</a></li><li class="navelem"><a class="el" href="dir_d5f223569182be7fb9b876919d20e64f.html">foundation</a></li><li class="navelem"><a class="el" href="dir_ab2a56303ead272aa5d39b18fca06b74.html">windows</a></li><li class="navelem"><a class="el" href="PxWindowsIntrinsics_8h.html">PxWindowsIntrinsics.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
